function registerUserAjax(userForm){
    var user = $(userForm).serialize();
    $.ajax({
    	  type: 'POST',
    	  url: '/register',
    	  data: user,
    	  success: onRegistrationSuccessHandler
    	});
}

function onRegistrationSuccessHandler(data){
	$('#content').html(data);
}

